package com.itheima.service;


import com.itheima.dto.UserDto;
import com.itheima.pojo.User;
import com.itheima.vo.UserVo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface UserService {
    boolean sendMsg(String phone);

    UserVo login( UserDto userDto);


    boolean isExistPhone(String phone);

    boolean add(UserDto userDto);


    void clearToken(String token);

    User findById(String id);
}
